﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ExportToDWGTool
{
    class TaskInfo
    {
        public string str;
        public string str1;
    }
    class TaskQueue
    {
        static public Queue<TaskInfo> m_TastQue = new Queue<TaskInfo>();
        //入队
        static public bool SaveTaskToQue(TaskInfo pInfo)
        {
            try
            {
                m_TastQue.Enqueue(pInfo);
            }
            catch (Exception ex)
            {
                return false;
            }
            return true;
        }
        //出队
        static public TaskInfo OutFromQueue()
        {
            TaskInfo task =null;
            try
            {
                task = m_TastQue.Dequeue();
            }
            catch (Exception ex)
            {
                return task;
            }
            return task;
        }
    }
}
